


//
//  PaintReaderViewController.m
//  ZQLearn
//
//  Created by macfeel on 2019/5/24.
//  Copyright © 2019 macfeel. All rights reserved.
//
#import "SDCycleScrollView.h"
#import "PaintReaderViewController.h"
#import "ReadModel.h"
#import "VipCollectionViewCell.h"
@interface PaintReaderViewController ()<UICollectionViewDelegate,UICollectionViewDataSource,SDCycleScrollViewDelegate>

///横向滚动的collectionView
@property(nonatomic,strong)UICollectionView *hCollectionView;
@property (nonatomic,strong)NSMutableArray *dataArray;

@property(nonatomic,assign)NSInteger currentPage;

@property(nonatomic,strong)SDCycleScrollView *cycleView;

@end

static NSString *vipCellID = @"vip";
#define HeaderHight  290
#define PageSize 20


@implementation PaintReaderViewController

- (void)viewDidLoad {
    
    [super viewDidLoad];
    self.dataArray = [NSMutableArray array];
   

    UILabel *labe = [[UILabel alloc]initWithFrame:CGRectMake(0, 10, ScreenWidth, 30)];
//    labe.backgroundColor = kMagentaColor;
    labe.text = [NSString stringWithFormat:@"%@",self.name?:@""];
    labe.textColor = kWhiteColor;
    labe.textAlignment = NSTextAlignmentCenter;
//    [self.view addSubview:labe];
    
    
    
}

-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
     self.navigationController.navigationBar.barTintColor = kBlackColor;
    if (self.photoArray) {
        self.cycleView.imageURLStringsGroup = self.photoArray;
        YYLog(@"%lu",(unsigned long)self.photoArray.count);
//        YYLog(@"%lu",(unsigned long)self.photoArray.count);
        
    }
    
}

-(void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
     self.navigationController.navigationBar.barTintColor = ThemeBlue;
}



@end
